#include<iostream>
#include<string>
using namespace std;
bool judge(string str)
{
    int left = 0, right = str.size() - 1;
    while (left <= right)
    {
        if (str[left] == str[right])
        {
            left++;
            right--;
        }
        else return false;

    }
    return true;
}

int main()
{
    string str = "yamatomaya";
    judge(str);
    return 0;
}